package com.bw.liuyushan.mykotlin_firstmvptest.MVVM

import com.bw.liuyushan.mykotlin_firstmvptest.MVP.Entity.Food
import com.bw.liuyushan.mykotlin_firstmvptest.Utils.FoodApi
import io.reactivex.Observer
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers

/**
 *MyKotlin_FirstMVPTest
 *file name is : Repository
 *created by Ender on 2021/9/16 15:39.
 *author : 刘雨杉
 *Describe:练习的MVVM框架半成品 有冲突 先注释掉
 */


/**
 * 相当于mvp中的model
 * 用来读取远程数据或者本地的room
 */
object Repository {
//和MVP有冲突 先注释掉
    fun getFood(oberver:Observer<Food>){
//        RetrofitManager.getRetrofit()
//            .create(FoodApi::class.java)
//            .getFood()
//            .observeOn(AndroidSchedulers.mainThread())
//            .subscribeOn(Schedulers.io())
//            .subscribe(oberver)
    }

}